public class demo08 {
    public static void main(String[] args) {
        //定义一个变量记录数字个数
        int count = 0;
        for (int i = 1; i <= 100; i++) {
            //判断是否是9的倍数
            if (i % 9 == 0) {
                continue;
            }
            System.out.print(i + " ");
            count++;
            //每五个换行
            if (count % 5 == 0) {
                System.out.println();
            }
        }
    }
}